package org.lanqiao.ssm.facede.auth.facede.impl;

import java.util.List;

import javax.annotation.Resource;

import org.lanqiao.ssm.common.core.facede.base.BaseQueryFacede;
import org.lanqiao.ssm.common.core.service.BaseServiceI;
import org.lanqiao.ssm.facede.auth.facede.MenuQueryFacedeI;
import org.lanqiao.ssm.facede.auth.model.Menu;
import org.lanqiao.ssm.facede.auth.service.MenuServiceI;
import org.springframework.stereotype.Component;

@Component("menuQueryFacede")
public class MenuQueryFacedeImpl extends BaseQueryFacede<Menu, String>
		implements MenuQueryFacedeI {

	@Resource
	private MenuServiceI menuService;

	public BaseServiceI<Menu, String> getService() {
		return menuService;
	}

	@Override
	public List<Menu> findAllTreeNode() {
		
		return menuService.findAllTreeNode();
	}

	@Override
	public Menu findMenuByProperties(Menu m) {
		
		return menuService.findMenuByProperties(m);
	}

	@Override
	public List<Menu> treegrid() {
		
		return menuService.treegrid();
	}

}
